﻿
using System.Collections;
using System.Collections.Generic;
using UGUIFW;
using UnityEngine;
using UnityEngine.UI;

public class LoginUI : BaseUI
{
    public Text txtTime;

    public LoginUI(UIInfo info) :base(info)
    {
    }

    public override void Display()
    {
        base.Display();

        txtTime = transform.Find("Bg/Time").GetComponent<Text>();
        /* 给按钮注册事件 */
        RigisterButtonObjectEvent("Btn_OK",
            go => {
                ShowUI(EUIName.MainCity_UI);
                ShowUI(EUIName.HeroInfo_UI);
            });

    }

    public override void Update()
    {
        base.Update();
        txtTime.text = ((int)(Time.time * 100) / 100f).ToString();
    }
}
